package com.cf.exception;

/**
 * cf-game-BizException
 *
 * @author <a href="2428922347@qq.com">Zhu mingming</a>
 * @info
 * @since 2018/3/5 9:58
 */
public class BizException extends BaseException {

    private Integer code;
    
    public BizException(Integer code, String message, Throwable cause) {
        super(message, cause);
        this.code = code;
    }

    public BizException(Integer code, String msg) {
        super(msg);
        this.code = code;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }


    @Override
    public String toString() {
        return "BizException " +
                "code=" + code +
                ", message=" + message;
    }
}
